/*
 * @Date: 2022-01-06 14:03:32
 * @Version: 1.0.0
 * @Author: chenhengling
 * @Description: webpack开发配置
 * @FilePath: \template-vue-component\config\webpack.dev.config.js
 * @LastEditTime: 2022-01-11 14:27:19
 * @LastEditors: chenhengling
 */
const path = require('path');
const webpackBaseConfig = require('./webpack.base.config');
const merge = require('webpack-merge');

const webpackDevConfig = {
  entry: './src/main.js',
  output: {
    path: path.resolve(__dirname, '../dist'),
    publicPath: '/dist/',
    filename: 'build.js',
  },
  devServer: {
    historyApiFallback: true,
    noInfo: true,
    overlay: true,
  },
  devtool: '#eval-source-map',
};

module.exports = merge(webpackBaseConfig, webpackDevConfig);
